import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import dt from '@/components/dt'
import index from '@/components/index'
import index_b from '@/components/index_b'
import test from '@/components/test'
import detail from '@/components/detail'
import register from '@/components/register'
import login from '@/components/login'
import upload from '@/components/upload'
import mytest from '@/components/mytest'

Vue.use(Router)


var routes = [
        {
          path:'/test',
          name:'HelloWorld',
          component:HelloWorld
        },
        {
          path:'/mytest',
          name:'mytest',
          component:mytest
        },
        {
          path:'/index_b',
          name:'index_b',
          component:index_b
        },
        {
          path:'/',
          name:'index',
          component:index
        }
        ,
        {
          path:'/dt',
          name:'dt',
          component:dt
        }
        ,
        {
          path:'/detail',
          name:'detail',
          component:detail
        },
        {
          path:'/register',
          name:'register',
          component:register
        },
        {
          path:'/login',
          name:'login',
          component:login
        },
        {
          path:'/upload',
          name:'upload',
          component:upload
        }
]

export default new Router({
  routes:routes,
  mode:'history'   /*hash*/
})
